import request from '@/config/axios'


// ERP 库存盘点单 API
export const StockCheckApi = {

  // 查询库存盘点单详情
  getStockCheck: async (id: number) => {
    return await request.get({url: `/erp/stock-check/get?id=` + id})
  },

  // 扫码获取批次商品明细
  getBatchItemCode: async (params: any) => {
    return await request.get({url: `/erp/stock-check/get-item`, params})
  },
  // 提交单个商品盘点
  setCheckItem: async (data) => {
    return await request.post({url: `/erp/stock-check/check-item`, data})
  },

  // 盘点结束
  putFinish: async (data) => {
    return await request.post({url: `/erp/stock-check/mark-finish`, data})
  },

}
